Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning fixes #755

Merged
merged 1 commit into from
Dec 31, 2023
Merged

warning fixes #755

merged 1 commit into from
Dec 31, 2023

Conversation

isaacsas
Copy link
Member

Fixes some incorrect usage of fields in MTK systems instead of getters.

@isaacsas
Copy link
Member Author

needs JuliaSymbolics/Symbolics.jl#1029 for tests to pass

@TorkelE
Copy link
Member

TorkelE commented Dec 30, 2023

Looks good.

Out of curriosity, why should we use ModelingToolkit.getname() instead of getname directly?

@ChrisRackauckas ChrisRackauckas merged commit 532e7fd into SciML:master Dec 31, 2023
9 of 11 checks passed
@isaacsas
Copy link
Member Author

Looks good.

Out of curriosity, why should we use ModelingToolkit.getname() instead of getname directly?

No good reason -- I was making changes to get rid of the warnings and had put something else there at one point, and the ModelingToolkit just got kept. As long as that function is exported by MTK the qualifier wouldn't be needed.

@isaacsas isaacsas deleted the fix_warnings branch December 31, 2023 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants